//
//  AnotherdetaViewController.m
//  MMLOOK
//
//  Created by dllo on 15/9/5.
//  Copyright (c) 2015年 武俊娥. All rights reserved.
//

#import "AnotherdetaViewController.h"
#import "UIImageView+WebCache.h"

@interface AnotherdetaViewController ()


@end

@implementation AnotherdetaViewController

- (void)dealloc
{
    [_dicc release];
    [super dealloc];
}


-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
        self.dicc = [NSMutableDictionary dictionary];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"题外话";
    self.view.backgroundColor = [UIColor whiteColor];
    [self creatSubView];
}

- (void)creatSubView
{
    UIImageView *aimageView = [[[UIImageView alloc] initWithFrame:CGRectMake(20 * OffWidth, 20 * OffHeight, 335 * OffWidth, 340 * OffHeight)] autorelease];
    [aimageView sd_setImageWithURL:[NSURL URLWithString:[self.dicc objectForKey:@"pic"]]placeholderImage:[UIImage imageNamed:@"home.jpg"]];
    [self.view addSubview:aimageView];
    
    UILabel *lable = [[[UILabel alloc] initWithFrame:CGRectMake(20 * OffWidth, 370 * OffHeight, self.view.frame.size.width - 40, 30 * OffHeight)] autorelease];
    lable.text = [self.dicc objectForKey:@"detail"];
    [self.view addSubview:lable];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
